package com.agrm.comment.mapper;

import com.agrm.model.comment.dto.CommentQuery;
import com.agrm.model.comment.pojo.Comment;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    default List<Comment> findAll(Comment comment) {
        LambdaQueryWrapper<Comment> query = new LambdaQueryWrapper<>(comment);
        return selectList(query);
    }
}
